package com.survey.wxapp.controller;

import com.survey.common.annotation.Anonymous;
import com.survey.common.core.controller.BaseController;
import com.survey.common.core.domain.AjaxResult;
import com.survey.system.domain.SurRegion;
import com.survey.system.service.ISurRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Anonymous
@RestController
@RequestMapping("/wx/region")
public class WxRegionController extends BaseController {

    @Autowired
    private ISurRegionService surRegionService;

    /**
     * 查询地区列表
     */
    @PostMapping("/list")
    public AjaxResult list(@RequestBody SurRegion surRegion)
    {
        List<SurRegion> list = surRegionService.selectSurRegionList(surRegion);
        return success(list);
    }
}
